package com.jwsoft.manager.common.enums;
/**
 * @author chenzh
 * @date 2022-03-10
 * @description
 **/
public enum EnrollStatusFormalEnum {
    dsh("0", "待审核"),
    dlq("1", "资格审核通过/学校初审通过，等待复审"),
    lq("2", "已录取"),
    ywblq("3", "业务不录取"),
    xtblq("4", "无效"),
    wpz("5", "未派中"),
    tc("6", "主动退出"),
    hy("7", "待核验"),
    fs("8", "资料复审通过，等待终审录取"),
    hybtg("9", "资料核验不通过"),
    bh("10", "驳回中"),
    ;

    private String type;
    private String name;

    EnrollStatusFormalEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static EnrollStatusFormalEnum getByType(String type) {

        for (EnrollStatusFormalEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
